﻿using System;
using System.Collections.Generic;
using System.ServiceModel;
using AFI.Speargun.Web.Models;
using AFI.Speargun.Web.Services.Models;

namespace AFI.Speargun.Web.Services
{
    [ServiceContract(Namespace="Http://AFI.Speargun.Web.Services")]
    public interface IService
    {
        [OperationContract]
        IEnumerable<SInventoryChecking> ListInventoryCheckings();

        [OperationContract]
        IEnumerable<SAssetInventory> ListInventoryChecking(Guid inventoryCheckingId);

        [OperationContract]
        AssetEntry GetAssetEntry(Guid assetEntryId);
        
        [OperationContract]
        AssetInventory GetAssetInventory(Guid inventoryCheckingId, Guid assetEntryId);

        [OperationContract]
        void CreateAssetInventory(Guid inventoryCheckingId, Guid assetEntryId, AssetInventory assetInventory);

        [OperationContract]
        void EditAssetInventory(AssetInventory assetInventory);
    }
}
